package cn.topevery.garden.dal.logic;

import cn.topevery.garden.dal.dao.GardenTestDao;
import cn.topevery.garden.entity.po.GardenTest;
import cn.topevery.garden.entity.query.GardenTestQuery;
import cn.topevery.garden.framework.base.BaseLogic;
import hw.topevery.framework.db.base.BaseEntityDao;
import hw.topevery.framework.db.entity.DataPager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 *
 * @author code-generate
 * @date 2021-08-06
 */
@Service
public class GardenTestLogic extends BaseLogic<GardenTest> {
    @Autowired
    GardenTestDao gardenTestDao;

    @Override
    public BaseEntityDao<GardenTest, Integer> getDao() {
        return gardenTestDao;
    }

    

    /**
     * 获取列表
     *
     * @param query
     */
    public DataPager<GardenTest> listPage(GardenTestQuery query) {
        return gardenTestDao.listPage(query);
    }

    /**
     * 根据自增id批量删除
     *
     * @param ids
     */
    public void deleteBatchById(String userId,Integer[] ids) {
        gardenTestDao.delete(userId, ids);
    }
}
